{% extends "AcmeCommonBundle::layout.html.twig" %}

{% block title %}用户登录{% endblock %}

{% block body %}
<form class="form-horizontal" action="{{ path('AcmeSecurityBundle_LoginCheck') }}" method="post" >
{% if error %}
	<span class="help-inline">{{ error.message }}</span>
{% endif %}
	<div class="control-group{% if error %} error{% endif %}">
		<label class="control-label" for="username">用户名</label>
		<div class="controls">
		<input type="text" id="username" name="_username" value="{{ last_username }}" />
		</div>
	</div>

	<div class="control-group{% if error %} error{% endif %}">
		<label class="control-label" for="password">密码</label>
		<div class="controls">
		<input type="password" id="password" name="_password" />
		</div>
	</div>
	<button class="btn" data-loading-text="载入中..." onclick="$(this).button('loading');" >登录</button>
</form>
{% endblock %}